<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


<h:head>
	<title>Central de Estagio Aluno</title>
	<link rel="StyleSheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilo.css" media="screen" />
        <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/css/tema/theme.css"/>
</h:head>
<body>
	<h:form>

		<p:dataTable id="list" value="#{MBMovEmp.listarEmp}" var="emp"
			paginator="true" rows="8" emptyMessage="Nenhum registro encontrado."
			paginatorPosition="bottom">
			
			<f:facet name="header">  
            	Todos empregadores  
        	</f:facet>

			<p:column style="width: 1%;" headerText="Cod"
				filterBy="#{emp.codEmp}" filterMatchMode="startsWith">
				<h:outputText value="#{emp.codEmp}" />
			</p:column>
			<p:column style="width: 5%;" headerText="Nome"
				filterBy="#{emp.nomeEmp}" filterMatchMode="startsWith">
				<h:outputText value="#{emp.nomeEmp}" />
			</p:column>
			<p:column style="width: 5%;" headerText="CNPJ/CPF"
				filterBy="#{emp.CPNJCPFEmp}" filterMatchMode="startsWith">
				<h:outputText value="#{emp.CNPJCPFEmp}" />
			</p:column>
			<p:column style="width: 1%;" headerText="Situação"
				filterBy="#{emp.situacaoEmp}" filterStyle="width: 20px;" filterMatchMode="startsWith">
				<h:outputText value="#{emp.situacaoEmp}" />
			</p:column>
			<p:column style="width: 5%;">
				<p:commandButton id="situacao" value="Desativar" icon="ui-icon-disk"
				actionListener="#{MBMovEmp.desativar(emp.codEmp)}" update="list" />
			</p:column>

		</p:dataTable>

	</h:form>
</body>
</html>